package com.buding.fx.utils;

import java.util.concurrent.*;

public class ThreadPool {

    public static final ExecutorService es = new ThreadPoolExecutor(
            Runtime.getRuntime().availableProcessors(),
            Runtime.getRuntime().availableProcessors() * 2,
            6000,
            TimeUnit.SECONDS,
            new ArrayBlockingQueue<Runnable>(6000),
            Executors.defaultThreadFactory(),
            new ThreadPoolExecutor.AbortPolicy()
    );

}
